From: Matthias Clasen Date: Sun, 30 Oct 2022 12:42:08 +0000 (-0400) Subject: Add a test for POTFILES.in X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~128^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5cb84afaa9897998a7fe7ca3c834ca6604ffe0fa;p=gtk4.git Add a test for POTFILES.in Add a test that runs make-pot. This will only pass if you've updated po/POTFILES.in and .skip after moving source files around. Unfortunately, it won't catch new source files that are missing. --- diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build index b9f039627a..34237458da 100644 --- a/testsuite/gtk/meson.build +++ b/testsuite/gtk/meson.build @@ -299,6 +299,13 @@ foreach test : focus_chain_tests ) endforeach +# Test that po/POTFILES.in and po/POTFILES.skip are up-to-date + +make_pot = find_program ('make-pot', dirs: meson.project_source_root()) + +test('potfiles', make_pot, + workdir: meson.project_source_root(), + suite: ['gtk', 'translations' ]) if get_option('install-tests') foreach t : tests